<?php

/*
 * This is an example script which shows how to initialize a logout with
 * the lasso helper library.
 */

/* Load the lasso helper library. */
require_once('lasso.php');

/* Load the self_url function. */
require_once('self_url.php');

/* Get the url to the current directory. */
$url = dirname(lp_self_url(FALSE)) . '/';

/* Call the logout initializer. This function will redirect the user to the IdP
 * to allow the user to be logged out of all pages. After completion of this,
 * the user will be redirected to the url specified in the argument of
 * lp_init_logout.
 */
lp_init_logout($url);

?>
